﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Aij1.Utils;

namespace Aij1.Cms
{
    public partial class EmployeeMan : AdminPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Page_Init(object sender, EventArgs e)
        {
            XpoDataSource1.Session = XpoSession;
        }

        protected void ASPxGridView1_ParseValue(object sender, DevExpress.Web.Data.ASPxParseValueEventArgs e)
        {
            if (e.FieldName == "Password")
            {
                string password = CommOp.ToStr(e.Value);
                if (password.Length < 32)
                {
                    e.Value = CommOp.MD5(password);
                }
            }
        }
    }
}